﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using WindowsFormsTest.Public;

namespace WindowsFormsTest.Purchase
{
    public partial class ProviderPriceManager : MainTabUserContorl
    {
        string[][] initData = new string[][] { new string[] { "香港嘉联","A", "MSP4300", "TI", "PCS", "11", "0.9200", "USD", "6000", "3wks", "2012-1-1", "皇岗口岸" }, new string[] { "晏阳科技","B", "PIC6700", "Microsoft", "PCS", "11", "0.9200", "USD", "6000", "3wks", "2012-1-1", "皇岗口岸" }, new string[] { "晏阳科技","B", "MSP4300", "Microsoft", "PCS", "11", "0.9200", "USD", "6000", "3wks", "2012-1-1", "皇岗口岸" } };
        public ProviderPriceManager()
        {
            InitializeComponent();

            this.dataGridView1.Rows.Add();
            this.dataGridView1.Rows.Add();
            for (int i = 0; i < initData.Length; i++)
            {
                for (int j = 0; j < initData[0].Length; j++)
                {
                    this.dataGridView1.Rows[i].Cells[j].Value = initData[i][j];
                }
                
            }
        }
        public override void SetModel(Public.WindowModel modelType)
        {
            switch (modelType)
            {
                case WindowModel.MANAGER_SEARCH:
                    {
                        this.splitContainer2.Panel1Collapsed = true;

                        break;
                    }
                default:
                    {
                        break;
                    }
            }
        }
        private void button3_Click(object sender, EventArgs e)
        {

        }

        private void splitContainer2_Panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2Collapsed = false;
           
        }

        private void button3_Click_1(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2Collapsed = true;
           
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2Collapsed = false;
        }

        private void button7_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2Collapsed = false;
        }
    }
}
